<?php

require_once './config.php';

$sql = "SELECT * FROM address";
$result = mysqli_query($conn,$sql);
$data = mysqli_fetch_assoc($result);
echo json_encode(array(
    'code' => 1,
    'data' => $data
));